package com.lanqiao.attendance.mapper;

import com.lanqiao.attendance.pojo.Course;
import com.lanqiao.attendance.vo.CourseByStuVo;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CourseMapper {
    List<Course> query();

    Course queryByCourseNum(String num);

    int insert(Course course);

    Course queryById(Long id);

    int delete(Long id);

    int update(Course course);

    List<CourseByStuVo> queryCourseStu(String stuAccount);

    List<CourseByStuVo> queryCourseStuByTitle(@Param("stuAccount") String stuAccount, @Param("couTitle") String couTitle);

    CourseByStuVo queryCourseDetail(@Param("couNumber") String couNumber);
}
